package zy1219.zy7;

import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;

public class demo {
    public static void main(String[] args) throws InvocationTargetException, IllegalAccessException {
        demo01();
    }
    public static void demo01() throws InvocationTargetException, IllegalAccessException {
        Map<String,String[]> map = new HashMap<>();
        map.put("bookname",new String[]{"卡机福建安徽的"});
        map.put("author",new String[]{"；安塞尔"});
        map.put("price",new String[]{"15"});
        map.put("publishDate",new String[]{"2016年10月10号"});
        book book = new book();
        MyBeanUtils utils = new MyBeanUtils();
        utils.populate(book,map);
    }
}
